define([
	'views/public/resetPassword',

	'views/medium/list',

	'views/business/list',

	// *******广告主提现
	'views/drawMoney/adList',
	// **********渠道提现
	'views/drawMoney/chList',

	// **********广告主订单
	'views/recharge/adList',
	// **********渠道订单
	'views/recharge/chList',

	// **********游戏用户管理-广告
	'views/gameUser/adList',
	// **********游戏用户管理-渠道
	'views/gameUser/chList',

	// **********广告主充值
	'views/recharge/adCharge',
	// **********渠道充值
	'views/recharge/chCharge',

	'views/game/list',
	'views/chManage/list',
	'views/adManage/list',

	// **********反馈
	'views/feedback/list',

	// **********合作客户
	'views/partener/list',

	// **********定制推广
	'views/design/list',

	// **********公众号管理
	'views/numberManage/list',

	// **********公众号报价
	'views/numberPrice/list',

	// **********公众号类别
	'views/numberCategory/list',

	// **********banner
	'views/topBanner/list',

	// **********热门搜索
	'views/hotSearch/list',

	// **********案例展示
	'views/caseShow/list',
	// **********下单管理
	'views/orderManager/list',
	// **********游戏分类
	'views/gameCategory/list',
	// **********公告
	'views/announcement/list',
	// **********威信游戏用户
	'views/gameUserWei/adList',
	// **********威信最新游戏管理
	'views/newGame/list',
	// **********威信最热游戏管理
	'views/hotGame/list',
	// **********威信游戏榜单管理
	'views/billBoard/list'


], function(
	ResetPassword,
	Medium,
	Business,
	// ***广告主提现
	AdList,
	// ***渠道提现
	ChList,
	// ***广告主订单
	ReAdList,
	// ***渠道订单
	ReChList,
	// ***游戏用户管理-广告
	GameUserAd,
	//*****游戏用户管理-渠道
	GameUserCh,
	//****广告主充值
	ReAdCharge,
	//****渠道充值
	ReChCharge,
	GameList,
	ChMaList,
	AdMaList,
	//****反馈
	FeedbackList,
	//****合作客户
	PartenerList,
	//****定制推广
	DesignList,
	//****公众号管理
	NumberManageList,
	//****公众号报价
	NumberPriceList,
	//****公众号类别
	NumberCategoryList,
	//****banner
	TopBannerList,
	//****热门搜索
	HotSearchList,
	//****案例展示
	CaseShowList,
	//****下单管理
	OrderManagerList,
	//****游戏分类
	GameCategoryList,
	//****公告
	AnnouncementList,
	//****威信游戏用户
	GameUserWeiList,
	//****威信最新游戏管理
	NewGameList,
	//****威信最热游戏管理
	HotGameList,
	//****威信游戏榜单管理
	BillBoardList
) {
	return {
		renderView: function(module,params) {
			module = module || this.getCurrentModule();
			switch (module) {
				case 'setting':
					new ResetPassword();
					break;
				case 'medium-list':
					new Medium();
					break;
				case 'business-list':
					new Business();
					break;	
				// 广告主提现
				case 'drawMoney-adList':
					new AdList();
					break;	
				// 渠道提现
				case 'drawMoney-chList':
					new ChList();
					break;	

				// 广告主订单			
				case 'recharge-adList':
					new ReAdList();
					break;	
				// *渠道订单
				case 'recharge-chList':
					new ReChList();
					break;	
				
				// 游戏用户管理-广告
				case 'game-userAd':
					new GameUserAd();
					break;	
				// 游戏用户管理-渠道
				case 'game-userCh':
					new GameUserCh();
					break;	

					// 广告主充值
				case 'recharge-adCharge':
					new ReAdCharge();
					break;	
					// 渠道充值
				case 'recharge-chCharget':
					new ReChCharge();
					break;

				case 'game-ad':
					new GameList();
					break;	
				case 'channel-manage':
					new ChMaList();
					break;
				case 'ad-manage':
					new AdMaList();
					break;	

				//反馈
				case 'feedback-list':
					new FeedbackList();
					break;	
				//合作客户
				case 'partener-list':
					new PartenerList();
					break;
				//定制推广
				case 'design-list':
					new DesignList();
					break;	
				//公众号管理
				case 'numberManage-list':
					new NumberManageList();
					break;	
				//公众号报价
				case 'numberPrice-list':
					new NumberPriceList();
					break;	
				//公众号类别
				case 'numberCategory-list':
					new NumberCategoryList();
					break;	
				//banner
				case 'topBanner-list':
					new TopBannerList();
					break;	
				//热门搜索
				case 'hotSearch-list':
					new HotSearchList();
					break;
				//案例展示
				case 'caseShow-list':
					new CaseShowList();
					break;	
				//下单管理
				case 'orderManager-list':
					new OrderManagerList();
					break;	
				//游戏分类
				case 'gameCategory-list':
					new GameCategoryList();
					break;
				//公告
				case 'announcement-list':
					new AnnouncementList();
					break;
				//威信游戏用户
				case 'gameUserWei-adlist':
					new GameUserWeiList();
					break;
				//威信最新游戏管理
				case 'newGame-list':
					new NewGameList();
					break;
				//威信最热游戏管理
				case 'hotGame-list':
					new HotGameList();
					break;
				//威信游戏榜单管理
				case 'billBoard-list':
					new BillBoardList();
					break;
			}
		},
		getCurrentModule: function() {
			return location.hash.replace(/#view.*\/(\w+)/, '$1');
		}
	}
});